<template>
  <div class="tabnav">
    <router-link to="/">推荐音乐</router-link>
    <router-link to="/hot">热歌榜</router-link>
    <router-link to="/search">搜索</router-link>
  </div>
</template>

<script>
export default {};
</script>

<style lang="scss" scoped>
.tabnav {
  position: fixed;
  top: 85px;
  width: 100%;
  z-index: 99;
  background-color: #fff;
  line-height: 40px;
  display: flex;
  
  a {
    flex: 1;
    font-size: 15px;
    color: #222;
    text-align: center;
    cursor: pointer;

    &.router-link-exact-active {
      border-bottom: 2px solid red;
    }
  }
}
</style>